import NotFind from '../pages/404.vue'
import Login from '../pages/Login.vue'
export default [
  {
    path: '/',
    component: Login
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/404',
    component: NotFind
  },
  {
    path: '/main',
    component: function (resolve) {
      require(['../layout/Main.vue'], resolve)
    },
    children: [
      {
        path: '/index',
        component: function (resolve) {
          require(['../pages/Index.vue'], resolve)
        },
        meta: {title: '首页'}
      },
      {
        path: '/order/list',
        component: function (resolve) {
          require(['../pages/order/Order.vue'], resolve)
        },
        meta: {title: '订单'}
      },
      {
        path: '/order/list2',
        component: function (resolve) {
          require(['../pages/order/Order2.vue'], resolve)
        },
        meta: {title: '订单'}
      }
    ]
  }
]
